package org.java.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

/**
 * @author WHQ
 * @version 1.0
 * @date 2022-3-15 0015 下午 2:52
 */
@TableName("user_order")
public class Order {

    @TableId
    @TableField("order_id")
    private String orderId;
    @TableField("order_user_name")
    private String orderUserName;
    @TableField("order_addr_id")
    private Integer orderAddrId;
    @TableField("order_money")
    private Long orderMoney;
    @TableField("order_create_time")
    private Date orderCreateTime;
    @TableField("order_state")
    private Boolean orderState;
    @TableField("order_timeout_state")
    private Boolean orderTimeoutState;

    public Order() {
    }

    public Order(String orderId, String orderUserName, Integer orderAddrId, Long orderMoney, Date orderCreateTime, Boolean orderState, Boolean orderTimeoutState) {
        this.orderId = orderId;
        this.orderUserName = orderUserName;
        this.orderAddrId = orderAddrId;
        this.orderMoney = orderMoney;
        this.orderCreateTime = orderCreateTime;
        this.orderState = orderState;
        this.orderTimeoutState = orderTimeoutState;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderUserName() {
        return orderUserName;
    }

    public void setOrderUserName(String orderUserName) {
        this.orderUserName = orderUserName;
    }

    public Integer getOrderAddrId() {
        return orderAddrId;
    }

    public void setOrderAddrId(Integer orderAddrId) {
        this.orderAddrId = orderAddrId;
    }

    public Long getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(Long orderMoney) {
        this.orderMoney = orderMoney;
    }

    public Date getOrderCreateTime() {
        return orderCreateTime;
    }

    public void setOrderCreateTime(Date orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }

    public Boolean getOrderState() {
        return orderState;
    }

    public void setOrderState(Boolean orderState) {
        this.orderState = orderState;
    }

    public Boolean getOrderTimeoutState() {
        return orderTimeoutState;
    }

    public void setOrderTimeoutState(Boolean orderTimeoutState) {
        this.orderTimeoutState = orderTimeoutState;
    }
}
